<template>
  <div class="left-chart-1">
    <div class="lc2-header">
      实时天气
    </div>
    <div>
      <div>今天</div>
      <div>
        <svg-icon :icon-class=props.data.skycon class="el-input__icon" style="height: 48px;width: 48px;"></svg-icon>
      <span>{{ props.data.skyconName }}</span>
      </div>
      <div style="">
        <svg-icon icon-class='thermometer-celsius' class="el-input__icon" style="height: 36px;width: 36px;"></svg-icon>{{ props.data.temperature }}℃ 
        <svg-icon icon-class='humidity' class="el-input__icon" style="height: 36px;width: 36px;"></svg-icon>{{ props.data.humidity }}%</div>
      <div><svg-icon icon-class='windsock' class="el-input__icon" style="height: 36px;width: 36px;"></svg-icon>风速：{{ props.data.wind.speed }}; 风向： {{ props.data.wind.direction}}</div>
    </div>
    <dv-decoration-2 style="height:10px;" />
  </div>
</template>

<script lang="ts" setup>
import SvgIcon from "@/components/SvgIcon";

const props = defineProps({
    data: {
        required: true,
        type: Object
    }
})

</script>

<style lang="scss" scoped>
.left-chart-1 {
  width: 100%;
  height: 30%;
  display: flex;
  flex-grow: 0;
  flex-direction: column;

  .lc1-header {
    text-align: center;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin-bottom: 10px;
  }

  .lc1-details {
    height: 35px;
    font-size: 16px;
    display: flex;
    align-items: center;
    text-indent: 20px;

    span {
      color: #096dd9;
      font-weight: bold;
      font-size: 35px;
      margin-left: 20px;
    }
  }

  .lc1-chart {
    flex: 1;
  }
}
</style>
